package com.sen.rbac;

import com.sen.common.feign.annotation.EnableSenFeignClient;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * @author esJiang
 */
@SpringBootApplication
@EnableDiscoveryClient
@MapperScan("com.sen.rbac.mapper")
@EnableSenFeignClient
public class RbacApplication {

    public static void main(String[] args) {
        if(args.length!=0){
            System.setProperty("spring.profiles.active",args[0]);
        }
        SpringApplication.run(RbacApplication.class,args) ;
    }
}
